﻿
<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>印刷</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <script src="~/js/layui/layui.js"></script>
    <link href="~/js/layui/css/layui.css" rel="stylesheet" />
    <link href="~/X-admin/css/xadmin.css" rel="stylesheet" />
    <script src="~/X-admin/js/jquery.min.js"></script>
    <script src="~/X-admin/js/xadmin.js"></script>
    <script src="~/js/framework/sysframework.js"></script>
    <script src="~/js/framework/commonjs.js"></script>

</head>
<body>
    <ul lay-bar="disabled" class="mWebBanner" id="mWebBanner">
        <li class="layui-nav-item" style="float:left;">
            <button id="btn-Save" type="button" name="btn_update" onclick="SavePlanGYData('dForm')" class="buttonCss">
                <i class="layui-icon" style="margin-right:3px">&#x1005;</i>保存数据
            </button>
        </li>
    </ul>
    <div class="layui-card" >
        <div class="layui-card-body" style="padding-top:1%">
            <div class="layui-card-body" id="layui-table-main">
                <table class="layui-hide" id="gxmlist" lay-filter="gxmlist"></table>
            </div>

            <form id="dForm" class="layui-form layui-col-space5" lay-filter="form-filter">
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            印刷米数
                        </div>
                        <input type="text" id="gxNum" name="gxNum" class="layui-input" style="width:50%" />
                    </div>

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            印刷成品米数
                        </div>
                        <input type="text" id="yscpms" name="yscpms" class="layui-input" style="width:50%" />

                    </div>
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            电晕面
                        </div>
                        <input type="text" id="dym" name="dym" class="layui-input">

                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            油墨类型
                        </div>
                        <input type="text" id="ymlx" name="ymlx" class="layui-input" width="90%"/>
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        <input type="text" id="memo" name="memo" class="layui-input" width="80%">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        <div class="layui-input-prefix">
                          袋型
                        </div>
                        <input type="text" id="ysdx" name="ysdx" class="layui-input" width="90%" />
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        <div class="layui-input-prefix">
                            印刷类型
                        </div>
                        <input type="text" id="ysyslx" name="ysyslx" class="layui-input" width="90%" />
                    </div>
                </div>
     
                <div class="layui-form-item">
                <div class="layui-card-body layui-table-body" id="layui-table-main">
                    <table class="layui-hide" id="list" lay-filter="list"></table>
                </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                           版 数
                        </div>
                        <input type="text" id="ysbanshu" name="ysbanshu" class="layui-input" style="width:80%"/>
                    </div>
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            位 置
                        </div>
                        <input type="text" id="ysweizhi" name="ysweizhi" class="layui-input" style="width:80%" />
                    </div>
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                         版 辊
                        </div>
                        <input type="text" id="ysbangun" name="ysbangun" class="layui-input" style="width:80%" />
                    </div>
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                           通用版
                        </div>
                        <input type="text" id="ystonyong" name="ystonyong" class="layui-input" style="width:80%" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                           注意事项
                        </div>
                         <input type="text" id="fbyq" name="fbyq" class="layui-input" style="width:400%"> 
                    </div>
                </div>
                <div style="width:98%;overflow-x: auto;" >
                    <table class="layui-table" >
                        <tr>
                            <th >序号</th>
                            <th>1</th>
                            <th>2</th>
                            <th>3</th>
                            <th>4</th>
                            <th>5</th>
                            <th>6</th>
                            <th>7</th>
                            <th>8</th>
                            <th>9</th>
                            <th>10</th>
                        </tr>
                        <tr>
                            <td>色序</td>
                            <td>
                                <input type="text" id="sexu1" name="sexu1" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu2" name="sexu2" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu3" name="sexu3" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu4" name="sexu4" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu5" name="sexu5" class="layui-input">
                                </td>
                            <td>
                                <input type="text" id="sexu6" name="sexu6" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu7" name="sexu7" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu8" name="sexu8" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu9" name="sexu9" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="sexu10" name="sexu10" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td>重量</td>
                            <td>
                                <input type="text" id="zhongliang1" name="zhongliang1" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang2" name="zhongliang2" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang3" name="zhongliang3" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang4" name="zhongliang4" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang5" name="zhongliang5" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang6" name="zhongliang6" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang7" name="zhongliang7" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang8" name="zhongliang8" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang9" name="zhongliang9" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="zhongliang10" name="zhongliang10" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td>粘度</td>
                            <td>
                                <input type="text" id="niandu1" name="niandu1" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu2" name="niandu2" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu3" name="niandu3" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu4" name="niandu4" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu5" name="niandu5" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu6" name="niandu6" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu7" name="niandu7" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu8" name="niandu8" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu9" name="niandu9" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="niandu10" name="niandu10" class="layui-input">
                            </td>
                        </tr>
                        <tr>
                            <td>专色油墨比例</td>
                            <td>
                                <input type="text" id="ymbl1" name="ymbl1" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl2" name="ymbl2" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl3" name="ymbl3" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl4" name="ymbl4" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl5" name="ymbl5" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl6" name="ymbl6" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl7" name="ymbl7" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl8" name="ymbl8" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl9" name="ymbl9" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="ymbl10" name="ymbl10" class="layui-input">
                            </td>
                        </tr>
                       
                    </table>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;margin-top:2%">
                        <div class="layui-input-prefix">
                            进风量
                        </div>
                        <input type="text" id="jinfeng" name="jinfeng" class="layui-input" />
                    </div>

                    <div class="layui-input-group" style="float:left;margin-left:7%;;margin-top:2%">
                        <div class="layui-input-prefix">
                            出风量
                        </div>
                        <input type="text" id="chufeng" name="chufeng" class="layui-input">

                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:7%;;margin-top:2%">
                        <div class="layui-input-prefix">
                            热封面
                        </div>
                        <input type="text" id="rfm" name="rfm" class="layui-input">

                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                         温度
                        </div>
                        <input type="text" id="wendu" name="wendu" class="layui-input" style="width:50%" />
                    </div>

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            湿度
                        </div>
                        <input type="text" id="shidu" name="shidu" class="layui-input" style="width:50%">

                    </div>

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            机速
                        </div>
                        <input type="text" id="jisu" name="jisu" class="layui-input" style="width:50%">

                    </div>
           
                </div>
                <div class="layui-form-item" style="margin-top:2%">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            接头
                        </div>
                        <input type="text" id="jt" name="jt" class="layui-input" style="width:50%">

                    </div>
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            毛重
                        </div>
                        <input type="text" id="mz" name="mz" class="layui-input" style="width:50%">
                    </div>
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            生产人员
                        </div>
                        <input type="text" id="ysscry" name="ysscry" class="layui-input" style="width:250%">
                    </div>
                </div>

                <div style="width:98%;overflow-x: auto;">
                    <table class="layui-table">
                        <tr>
                            <th>名称</th>
                            <th>乙酯</th>
                            <th>正丙酯</th>
                            <th>异丙醇</th>
                            <th>丁酯</th>
                           
                        </tr>
                        <tr>
                            <td>领用重量(kg)</td>
                            <td>
                                <input type="text" id="lgzl01" name="lgzl01" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="lgzl02" name="lgzl02" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="lgzl03" name="lgzl03" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="lgzl04" name="lgzl04" class="layui-input">
                            </td>
                           
                        </tr>
                        <tr>
                            <td>批号</td>
                            <td>
                                <input type="text" id="pihao01" name="pihao01" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="pihao02" name="pihao02" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="pihao03" name="pihao03" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="pihao04" name="pihao04" class="layui-input">
                            </td>
                           
                        </tr>
                        <tr>
                            <td>配比</td>
                            <td>
                                <input type="text" id="peibi01" name="peibi01" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="peibi02" name="peibi02" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="peibi03" name="peibi03" class="layui-input">
                            </td>
                            <td>
                                <input type="text" id="peibi04" name="peibi04" class="layui-input">
                            </td>
                           
                        </tr>

                    </table>
                </div>
                <input type="hidden" id="plCode" name="plCode">
                <input type="hidden" id="gxCode" name="gxCode" value="YS">
            </form>

            <div class="layui-card-body" id="layui-table-main">
                <table class="layui-hide" id="mplist" lay-filter="mplist"></table>
            </div>
        </div>
    </div>

</body>

</html>
<script src="~/js/sysweb/planjs.js"></script>
<script type="text/html" id="barDemo">
    <a title="详情" href="javascript:;" lay-event="view" ><i class="layui-icon">&#xe615;</i></a>
    <a title="删除" href="javascript:;" lay-event="del" ><i class="layui-icon">&#xe640;</i></a>
</script>
<script>

    var plCode = "", isRead = "0";
 
    $(function () {
        plCode = getUrlVariable("plCode");
        isRead = getUrlVariable("isRead");
        $("input[ name='plCode']").val(plCode);

        if (isRead == "1")
            $('#mWebBanner').hide();
    
        loadGyFormData(plCode, "YS");
        loadBanGunData();
        loadZhYMaterial(plCode, "YS");
        loadGxPro();
    })
    /**
    * 加载数据
    * **/
    function loadBanGunData() {

        layui.use('table', function () {
            var table = layui.table;
            table.render({
                elem: '#list'

                , cols: [[ //标题栏
                      { field: 'byBarCode', align: 'center', title: '版辊条码', width: 120 }
                    , { field: 'byCode', align: 'center', title: '版 号', width: 120 }
                    , { field: 'banchang', align: 'center', title: '版 长', width: 120}
                    , { field: 'banzhou', align: 'center', title: '版 周', width: 100 }
                    , { field: 'houseName', align: 'center', title: '存放仓库', width: 180 }
                    , { field: 'statusName', align: 'center', title: '在库状态', width: 120 }
                ]], done: function (res, curr, count) {
           
                }
                , url: "../Plan/getDataList?dataType=pgyb&condition="+plCode
                , skin: 'row' //表格风格
                , even: true
                , page: false //是否显示分页
                , limits: [20, 25, 30]
                , limit: 20 //每页默认显示的数量
                , id: "list"
            });
     
        });

    }


  
    //存货选择
    function ChooseGxProduct() {
        layer.open({
            type: 2,
            maxmin: false,
            fix: false,
            title: "选择存货",
            area: ['90%', '90%'],
            closeBtn: 1,
            shadeClose: true,
            content: "../Basic/SelectInvStock?isSingle=0",
            //关闭弹出框的回调函数，不管弹出框是手动关闭还是通过脚本进行关闭，都执行
            end: function () {

            }
        });
    }

    //存货参数获取
    function getChildPar(pars) {
        if (pars != undefined) {
            var proCodes = "";
            for (var i = 0; i < pars.length; i++) {
                proCodes += pars[i].proCode + "-" + pars[i].cBatch + ",";
            }
            proCodes = proCodes.slice(0, -1);
            let gxCode = $("input[ name='gxCode']").val();
            SaveGxMaterials(proCodes,plCode,gxCode);
        }
    }

</script>

